﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Lari.Configuration;

namespace Lari.Services.ViewModel
{
    public class DesignationModel
    {
        public int Id
        {
            get;
            set;
        }

        [StringLength(100, ErrorMessage = MessageCode.Generic.LengthExceeded)]
        [Required(ErrorMessage = MessageCode.Generic.ReguiredFldMsg)]
        public string Name
        {
            get;
            set;
        }
    }
    public class DesignationListModel
    {
        public List<DesignationModel> List { get; set; }

        public DesignationModel Edit { get; set; }

        public DesignationModel Insert { get; set; }
    }
}
